import React, {
  PureComponent,
  Fragment
} from 'react'
import {BASEURL,GETHEADERS,POSTHEADERS} from '../../api'
import {getReq,postReq} from 'network-request-bywhj'
import {transferDatas} from 'js-fun-bywhj'
class Result extends PureComponent{
  constructor(props, context) {
    super(props, context);
  }
  render() {
    return (
        <Fragment>
          <h1>详情页面</h1>
        </Fragment>
    )
  }
  componentDidMount(){
    getReq(transferDatas(`${BASEURL}/homework/homework/checklogin`, {
      name: null
    }, 'get'), GETHEADERS, (responseData) => {
      if(!responseData){
        this.props.history.push('/login')
      }
    })
  };
}
export default Result
